/*
 * @(#)UserKeywordRepository.java $version 2012. 5. 11.
 *
 */

package com.mywep.myalimi.repository.keyword;

import java.util.List;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.mywep.myalimi.model.UserKeyword;

import com.nhncorp.lucy.spring.core.util.ExtendedMap;

/**
 * @author 한지웅
 */
public class UserKeywordRepository extends SqlMapClientDaoSupport {
	public int countByExample(ExtendedMap param) {
		return (Integer)getSqlMapClientTemplate().queryForObject("userKeyword.countByExample", param);
	}

	@SuppressWarnings("unchecked")
	public List<UserKeyword> selectByExample(ExtendedMap param) {
		return getSqlMapClientTemplate().queryForList("userKeyword.selectByExample", param);
	}

	public UserKeyword selectByPrimaryKey(UserKeyword param) {
		return (UserKeyword)getSqlMapClientTemplate().queryForObject("userKeyword.selectByPrimaryKey", param);
	}

	public Integer insert(UserKeyword param) {
		return (Integer)getSqlMapClientTemplate().insert("userKeyword.insert", param);
	}

	public Integer delete(UserKeyword param) {
		return (Integer)getSqlMapClientTemplate().delete("userKeyword.deleteByPrimaryKey", param);
	}

}
